package ncm;

import java.util.Scanner;

public class Scaaaa {
    public static void main(String[] args) {
        Scanner ac=new Scanner(System.in);

        System.out.print("请输入第一个整数：");//提示
        int num1 = ac.nextInt();

        System.out.print("请输入第二个整数：");
        int num2 = ac.nextInt();

        int he = num1 + num2;//和
        int cha = num1 - num2;//差
        int ch = num2 - num1;//差

        System.out.println("两个整数的和为：" + he);
        System.out.println("两个整数的差为：" + cha  +ch);
    }
    }


